drop_possible = TRUE;
+ /* Normalize drops on the feedback row */
+ if (place_type == PLACES_DROP_FEEDBACK) {
+ *pos = GTK_TREE_VIEW_DROP_INTO_OR_BEFORE;
+ goto out;
+ }
+
/* Never drop on headings, but special case the bookmarks heading,
* so we can drop bookmarks in between it and the first bookmark.
*/
g_free (uri);
}
+out:
+
if (!drop_possible) {
gtk_tree_path_free (*path);
*path = NULL;
int new_bookmark_index;
GtkTreeIter iter;
- g_assert (pos == GTK_TREE_VIEW_DROP_BEFORE || pos == GTK_TREE_VIEW_DROP_AFTER);
-
new_bookmark_index = gtk_tree_path_get_indices (path)[0];
if (pos == GTK_TREE_VIEW_DROP_AFTER)
PLACES_SIDEBAR_COLUMN_ROW_TYPE, &place_type,
-1);
- if (section_type == SECTION_BOOKMARKS) {
- if (pos == GTK_TREE_VIEW_DROP_BEFORE || pos == GTK_TREE_VIEW_DROP_AFTER) {
- action = GDK_ACTION_COPY;
- drop_as_bookmarks = TRUE;
- }
+ if (place_type == PLACES_DROP_FEEDBACK
+ || (section_type == SECTION_BOOKMARKS
+ && (pos == GTK_TREE_VIEW_DROP_BEFORE || pos == GTK_TREE_VIEW_DROP_AFTER))) {
+ action = GDK_ACTION_COPY;
+ drop_as_bookmarks = TRUE;
}
if (!drop_as_bookmarks) {